var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (cm.isQuestFinished(32309)) {
        cm.dispose();
        return
    }
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            if (cm.isQuestActive(32309)) {
                cm.forceStartQuest(32309, "11111");
                cm.playerMessage(-1, "宝石碎裂，失去了光芒。这个柱子好像停止工作了。")
            }
            cm.dispose()
        }
    }
};